<?php defined('SYSPATH') OR die('No direct access allowed.');
abstract class Base_Controller extends Template_Controller
{
	public $sidebar = '[$sidebar content]';
	public $footer = '[$footer content]';
	
    public function __construct() {
		parent::__construct();
		
		// Content that this controller supports
		$this->template->title = '[$title content here]';
		$this->template->content = '[$content content here]';		
		$this->template->sidebar = View::factory('sidebar/sidebar');
		$this->template->footer = View::factory('footer/footer');
		
        if (request::is_ajax()) {
            $this->profiler = NULL;
            $this->auto_render = FALSE;
            header('content-type: application/json');
        }
    }
}